package org.jeecg.modules.cdkey.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.cdkey.entity.AoCdkey;
import org.jeecg.modules.cdkey.mapper.AoCdkeyMapper;
import org.jeecg.modules.cdkey.service.IAoCdkeyService;
import org.jeecg.modules.cdkey.vo.AoCdkeyChart;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 兑换码
 *
 * @author thankgod7
 * @version V1.0
 * @date 2022-01-14
 */
@Service
public class AoCdkeyServiceImpl extends ServiceImpl<AoCdkeyMapper, AoCdkey> implements IAoCdkeyService {

    @Resource
    AoCdkeyMapper aoCdkeyMapper;

    @Override
    public List<AoCdkeyChart> limit7groupByCreateTime() {
        return aoCdkeyMapper.limit7groupByCreateTime();
    }

    @Override
    public List<AoCdkeyChart> limit30groupByCreateTime() {
        return aoCdkeyMapper.limit30groupByCreateTime();
    }

    @Override
    public List<AoCdkeyChart> limitYearGroupByCreateTime() {
        return aoCdkeyMapper.limitYearGroupByCreateTime();
    }
}
